<?php
#打开一个文件
$handle = fopen('https://t.m.youth.cn/transfer/toutiao/url/3g.youth.cn/rmtj/202009/t20200927_12511806.htm?tt_group_id=6877153210264617485','r');
#使用正则匹配想要的内容
preg_match('/<title>(.*)<\/title>/isU',fread($handle,99999999),$matches);
$title = fopen('title.txt','a+');
fwrite($title,$matches[1]);
fseek($title,0);
echo fread($title,99999);